| afnuke.inc 04/29/06 3:30pm est 

Sub LoadINI 
|  INI setup variables 
/varset INIFlag 0 
/varset TempStr ${Ini[${IniFile},Settings,mainassist1,NOTFOUND]} 
/varset mainassist1 ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings mainassist1 ${tankname} 
/varset mainassist1 ${tankname} 
} 
/varset TempStr ${Ini[${IniFile},Settings,mainassist2,NOTFOUND]} 
/varset mainassist2 ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings mainassist2 ${tankname} 
/varset mainassist2 ${tankname} 
} 
/varset TempStr ${Ini[${IniFile},Settings,mainassist3,NOTFOUND]} 
/varset mainassist3 ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings mainassist3 ${tankname} 
/varset mainassist3 ${tankname} 
} 
/varset TempStr ${Ini[${IniFile},Settings,doassist,NOTFOUND]} 
/varset doassist ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings doassist 1 
/varset doassist 1 
} 
/varset TempStr ${Ini[${IniFile},Settings,version,NOTFOUND]} 
/if (${TempStr.Equal["NOTFOUND"]} || !${TempStr.Equal["${version}"]}) { 
/varset INIFlag 1 
/echo Configuring aliases. 
/squelch /alias /evac /echo getout 
/squelch /alias /tl /echo tlocate 
/squelch /alias /modrod /echo domodrod 
/squelch /alias /preconcnum /echo preconcnum 
/squelch /alias /preconc /echo dopreconc 
/squelch /alias /harvest /echo doharvest 
/squelch /alias /harvestperc /echo harvestperc 
/squelch /alias /medtoggle /echo medtoggle 
/squelch /alias /epic /echo epic 
/squelch /alias /timewand /echo timewand 
/squelch /alias /force /echo forceshield 
/squelch /alias /autosit /echo autosit 
/squelch /alias /addmaster /echo addmaster 
/squelch /alias /delmaster /echo delmaster 
/squelch /alias /autofollow /echo autofollow 
/squelch /alias /stopfollow /echo stopfollow 
/squelch /alias /leash /echo leash 
/squelch /alias /cycle /echo cycle 
/squelch /alias /ta /echo ta 
/squelch /alias /sa /echo sa 
/squelch /alias /ma /echo ma 
/squelch /alias /nuke1 /echo nuke1 
/squelch /alias /nuke2 /echo nuke2 
/squelch /alias /conc /echo conc 
/squelch /alias /concnum /echo concnum 
/squelch /alias /myfamiliar /echo myfamiliar 
/squelch /alias /mainnukenum /echo mainnukenum 
/squelch /alias /endnukenum /echo endnukenum 
/squelch /alias /maxbuffs /echo maxbuffs 
/squelch /alias /mobhealth /echo mobhealth 
/squelch /alias /staffhealth /echo staffhealth 
/squelch /alias /stopnuke /echo stopnuke 
/squelch /alias /stopnuke2 /echo stopnuke2 
/squelch /alias /engagedistance /echo engagedistance 
/squelch /alias /doassist /echo assist 
/squelch /alias /doxuzl /echo doxuzl 
/squelch /alias /manarobe /echo manarobe 
/squelch /alias /xuzlperc /echo xuzlperc 
/squelch /alias /temp /echo temp 
/squelch /alias /dosnare /echo dosnare 
/squelch /alias /snareperc /echo snareperc 
/squelch /alias /ss /echo ss 
/squelch /alias /mw /echo mw 
/squelch /alias /som /echo som 
/squelch /alias /pause /echo pause 
/squelch /alias /exclude /echo exclude 
/squelch /alias /include /echo include 
/squelch /alias /iset /echo itemset 
/squelch /alias /ibounce /echo itembounce 
/squelch /alias /iclick /echo itemcast 
/squelch /alias /addjunk /echo addjunk 
/squelch /alias /deljunk /echo deljunk 
/squelch /alias /afhelp /echo afhelp 
/squelch /alias /nukepause /echo nukepause 
/ini "${IniFile}" Settings version ${version} 
} 
/varset TempStr ${Ini[${IniFile},Settings,autosit,NOTFOUND]} 
/varset autosit ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings autosit 0 
/varset autosit 0 
} 
/varset TempStr ${Ini[${IniFile},Settings,autositmana,NOTFOUND]} 
/varset autositmana ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings autositmana 90 
/varset autositmana 90 
} 
/varset TempStr ${Ini[${IniFile},Settings,autoTL,NOTFOUND]} 
/varset autoTL ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings autoTL 0 
/varset autoTL 0 
} 
/varset TempStr ${Ini[${IniFile},Settings,checktarget,NOTFOUND]} 
/varset checktarget ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings checktarget nocheck 
/varset checktarget nocheck 
} 
/varset TempStr ${Ini[${IniFile},Settings,preconc,NOTFOUND]} 
/varset preconc ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings preconc 0 
/varset preconc 0 
} 
/varset TempStr ${Ini[${IniFile},Settings,preconcnum,NOTFOUND]} 
/varset preconcnum ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings preconcnum 1 
/varset preconcnum 1 
} 
/varset TempStr ${Ini[${IniFile},Settings,concuss,NOTFOUND]} 
/varset concuss ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings concuss 1 
/varset concuss 1 
} 
/varset TempStr ${Ini[${IniFile},Settings,myconcgem,NOTFOUND]} 
/varset myconcgem ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings myconcgem gem5 
/varset myconcgem gem5 
} 
/varset TempStr ${Ini[${IniFile},Settings,concnum,NOTFOUND]} 
/varset concnum ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings concnum 1 
/varset concnum 1 
} 
/varset TempStr ${Ini[${IniFile},Settings,hasele,NOTFOUND]} 
/varset hasele ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings hasele 1 
/varset hasele 1 
} 
/varset TempStr ${Ini[${IniFile},Settings,checkfamiliar,NOTFOUND]} 
/varset checkfamiliar ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings checkfamiliar 1 
/varset checkfamiliar 1 
} 
/varset TempStr ${Ini[${IniFile},Settings,myfamiliar,NOTFOUND]} 
/varset myfamiliar ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings myfamiliar 759
/varset myfamiliar 759
} 
/varset TempStr ${Ini[${IniFile},Settings,engagedistance,NOTFOUND]} 
/varset engagedistance ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings engagedistance 200 
/varset engagedistance 200 
} 
/varset TempStr ${Ini[${IniFile},Settings,mainnuke,NOTFOUND]} 
/varset mainnuke ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings mainnuke "Flashfires" 
/varset mainnuke Flashfires
} 
/varset TempStr ${Ini[${IniFile},Settings,mainnukegem,NOTFOUND]} 
/varset mainnukegem ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings mainnukegem gem3 
/varset mainnukegem gem3 
} 
/varset TempStr ${Ini[${IniFile},Settings,mainnukenum,NOTFOUND]} 
/varset mainnukenum ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings mainnukenum 1 
/varset mainnukenum 1 
} 
/varset TempStr ${Ini[${IniFile},Settings,endnuke,NOTFOUND]} 
/varset endnuke ${TempStr} 
/varset Stbynuke ${TempStr}
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings endnuke "Cloudburst Strike Rk. II" 
/varset endnuke Cloudburst Strike Rk. II
/varset Stbynuke Cloudburst Strike Rk. II 
} 
/varset TempStr ${Ini[${IniFile},Settings,endnukenum,NOTFOUND]} 
/varset endnukenum ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings endnukenum 1 
/varset endnukenum 1 
} 
/varset TempStr ${Ini[${IniFile},Settings,endnukegem,NOTFOUND]} 
/varset endnukegem ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings endnukegem gem1 
/varset endnukegem gem1 
} 
/varset TempStr ${Ini[${IniFile},Settings,GoMnuke,NOTFOUND]} 
/varset GoMnuke ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings GoMnuke "Ether Flame" 
/varset GoMnuke Ether Flame 
} 
/varset TempStr ${Ini[${IniFile},Settings,GoMnukegem,NOTFOUND]} 
/varset GoMnukegem ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings GoMnukegem gem4 
/varset GoMnukegem gem4 
} 

/varset TempStr ${Ini[${IniFile},Settings,mobhealth,NOTFOUND]} 
/varset mobhealth ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings mobhealth 93 
/varset mobhealth 93 
} 
/varset TempStr ${Ini[${IniFile},Settings,stopnuke,NOTFOUND]} 
/varset stopnuke ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings stopnuke 20 
/varset stopnuke 23 
} 
/varset TempStr ${Ini[${IniFile},Settings,stopnuke2,NOTFOUND]} 
/varset stopnuke2 ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings stopnuke2 -1 
/varset stopnuke2 -1 
} 
/varset TempStr ${Ini[${IniFile},Settings,medtoggle,NOTFOUND]} 
/varset medtoggle ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings medtoggle 0 
/varset medtoggle 0 
} 
/varset TempStr ${Ini[${IniFile},Settings,medpercent,NOTFOUND]} 
/varset medpercent ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings medpercent 35 
/varset medpercent 35 
} 
/varset TempStr ${Ini[${IniFile},Settings,manatomedup,NOTFOUND]} 
/varset manatomedup ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings manatomedup 50 
/varset manatomedup 50 
} 
/varset TempStr ${Ini[${IniFile},Settings,manarobe,NOTFOUND]} 
/varset manarobe ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings manarobe 0 
/varset manarobe 0 
} 
/varset TempStr ${Ini[${IniFile},Settings,beginrobe,NOTFOUND]} 
/varset beginrobe ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings beginrobe 20 
/varset beginrobe 20 
} 
/varset TempStr ${Ini[${IniFile},Settings,donerobe,NOTFOUND]} 
/varset donerobe ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings donerobe 75 
/varset donerobe 75 
} 
/varset TempStr ${Ini[${IniFile},Settings,modrod,NOTFOUND]} 
/varset modrod ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings modrod 1 
/varset modrod 1 
} 
/varset TempStr ${Ini[${IniFile},Settings,rodpercent,NOTFOUND]} 
/varset rodpercent ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings rodpercent 90 
/varset rodpercent 90 
} 
/varset TempStr ${Ini[${IniFile},Settings,harvestpercent,NOTFOUND]} 
/varset harvestpercent ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings harvestpercent 70 
/varset harvestpercent 70 
} 
/varset TempStr ${Ini[${IniFile},Settings,doharvest,NOTFOUND]} 
/varset doharvest ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings doharvest 1 
/varset doharvest 1 
} 
/varset TempStr ${Ini[${IniFile},Settings,harvestgem,NOTFOUND]} 
/varset harvestgem ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings harvestgem gem2 
/varset harvestgem gem2 
} 
/varset TempStr ${Ini[${IniFile},Settings,shieldofmaelin,NOTFOUND]} 
/varset shieldofmaelin ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings shieldofmaelin 0 
/varset shieldofmaelin 0 
} 
/varset TempStr ${Ini[${IniFile},Settings,maelingem,NOTFOUND]} 
/varset maelingem ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings maelingem gem6 
/varset maelingem gem6 
} 
/varset TempStr ${Ini[${IniFile},Settings,forceshield,NOTFOUND]} 
/varset forceshield ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings forceshield 1 
/varset forceshield 1 
} 
/varset TempStr ${Ini[${IniFile},Settings,forcegem,NOTFOUND]} 
/varset forcegem ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings forcegem gem9 
/varset forcegem gem9 
} 
/varset TempStr ${Ini[${IniFile},Settings,usetimewand,NOTFOUND]} 
/varset usetimewand ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings usetimewand 0 
/varset usetimewand 0 
} 
/varset TempStr ${Ini[${IniFile},Settings,useepic,NOTFOUND]} 
/varset useepic ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings useepic 0 
/varset useepic 0 
} 
/varset TempStr ${Ini[${IniFile},Settings,spellshield,NOTFOUND]} 
/varset spellshield ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings spellshield 0 
/varset spellshield 0 
} 
/varset TempStr ${Ini[${IniFile},Settings,ssgem,NOTFOUND]} 
/varset ssgem ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings ssgem gem5 
/varset ssgem gem5 
} 
/varset TempStr ${Ini[${IniFile},Settings,manaward,NOTFOUND]} 
/varset manaward ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings manaward 0 
/varset manaward 0 
} 
/varset TempStr ${Ini[${IniFile},Settings,manawardgem,NOTFOUND]} 
/varset manawardgem ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings manawardgem gem5 
/varset manawardgem gem5 
} 
/varset TempStr ${Ini[${IniFile},Settings,tempstaff,NOTFOUND]} 
/varset tempstaff ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings tempstaff 0 
/varset tempstaff 0 
} 
/varset TempStr ${Ini[${IniFile},Settings,staffhealth,NOTFOUND]} 
/varset staffhealth ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings staffhealth 95 
/varset staffhealth 95 
} 
/varset TempStr ${Ini[${IniFile},Settings,doxuzl,NOTFOUND]} 
/varset doxuzl ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings doxuzl 0 
/varset doxuzl 0 
} 
/varset TempStr ${Ini[${IniFile},Settings,xuzlperc,NOTFOUND]} 
/varset xuzlperc ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings xuzlperc 85 
/varset xuzlperc 85 
} 
/varset TempStr ${Ini[${IniFile},Settings,dosnare,NOTFOUND]} 
/varset dosnare ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings dosnare 0 
/varset dosnare 0 
} 
/varset TempStr ${Ini[${IniFile},Settings,snareperc,NOTFOUND]} 
/varset snareperc ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings snareperc 25 
/varset snareperc 25 
} 
/varset TempStr ${Ini[${IniFile},Settings,snaregem,NOTFOUND]} 
/varset snaregem ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings snaregem gem8 
/varset snaregem gem8 
} 
/varset TempStr ${Ini[${IniFile},Settings,retry,NOTFOUND]} 
/varset retry ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings retry 3 
/varset retry 3 
} 
/varset TempStr ${Ini[${IniFile},Settings,maxbuffs,NOTFOUND]} 
/varset maxbuffs ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings maxbuffs 15 
/varset maxbuffs 15 
} 
/varset TempStr ${Ini[${IniFile},Settings,doleash,NOTFOUND]} 
/varset doleash ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings doleash 0 
/varset doleash 0 
} 
/varset TempStr ${Ini[${IniFile},Settings,leashholder,NOTFOUND]} 
/varset leashholder ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings leashholder nobody 
/varset leashholder nobody 
} 
/varset TempStr ${Ini[${IniFile},Settings,leashlength,NOTFOUND]} 
/varset leashlength ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings leashlength 40 
/varset leashlength 40 
} 
/varset TempStr ${Ini[${IniFile},Settings,followdistance,NOTFOUND]} 
/varset followdistance ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings followdistance 30 
/varset followdistance 30 
} 
/varset TempStr ${Ini[${IniFile},Settings,nukepause,NOTFOUND]} 
/varset nukepause ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings nukepause None 
/varset nukepause None 
} 
/varset TempStr ${Ini[${IniFile},Settings,dodmgclicky1,NOTFOUND]} 
/varset dodmgclicky1 ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings dodmgclicky1 0
/varset dodmgclicky1 None 
} 
/varset TempStr ${Ini[${IniFile},Settings,DmgClicky1,NOTFOUND]} 
/varset DmgClicky1 ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings DmgClicky1 None 
/varset DmgClicky1 None 
} 
/varset TempStr ${Ini[${IniFile},Settings,dodmgclicky2,NOTFOUND]} 
/varset dodmgclicky2 ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings dodmgclicky2 0
/varset dodmgclicky2 0
} 
/varset TempStr ${Ini[${IniFile},Settings,DmgClicky2,NOTFOUND]} 
/varset DmgClicky2 ${TempStr} 
/if (${TempStr.Equal["NOTFOUND"]}) { 
/varset INIFlag 1 
/ini "${IniFile}" Settings DmgClicky2 None 
/varset DmgClicky2 None 
} 
/if (${INIFlag}==1) { 
/echo INI file created/appended.  Please customize ${IniFile} in your macros directory. You may now start the macro with /mac afnuke 
/endmacro 
} 
/return 

Sub TargetCheck 
/declare temphealth int local 
/if (${tempstaff}>0) /varset temphealth ${staffhealth} 
/if (${tempstaff}<1) /varset temphealth ${mobhealth} 
/if ((!${Target.ID})||(${Target.ID}!=${mobid})||(${Target.Distance}>${engagedistance})||(${Target.Type.Equal[Corpse]})||(${Target.PctHPs}<=${stopnuke2})||(${Target.PctHPs}>${temphealth})) { 
/varset engagedmob 0 
/varset mobid NULL
/varset conccount 0 
/varset nukecount 0 
/varset snaretimer 0 
/varset pausetimer 0 
} 
/return 

Sub Assistcheck 
/if (!${Spawn[${tankname}].ID}) { 
/if (${Spawn[${mainassist1}].ID}) { 
/varset tankname ${mainassist1} 
/Echo Your Main Assist changed to ${tankname} 
} else /if (${Spawn[${mainassist2}].ID}) { 
/varset tankname ${mainassist2} 
/Echo Your Main Assist changed to ${tankname} 
} else /if (${Spawn[${mainassist3}].ID}) { 
/varset tankname ${mainassist3} 
/Echo Your Main Assist changed to ${tankname} 
} 
} 
/if ((!${Me.Casting.ID})&&(!${Me.Moving})&&(${Spawn[${tankname}].ID})&&(${Spawn[${tankname}].Distance}<200)&&(${engagedmob}==0)&&(${mobid}==0)&&(!${asstimer})) { 
/assist ${tankname} 
/varset asstimer 1s 
/if (${Target.ID} && !${Target.Type.Equal[PC]}) /varset mobid ${Target.ID} 
} else { 
/call TargetCheck 
/return 
} 
/if (${Target.ID} && !${Target.Type.Equal[PC]}) /call CheckExcludes 
/if (${tempstaff}<1) /goto :nostaff 
/if ((${Target.ID}==${mobid} && ${Target.PctHPs}<=${staffhealth} && ${Target.Distance}<=${engagedistance} && ${Target.PctHPs}>${stopnuke2} && ${Target.LineOfSight} && ${Spawn[${mobid}].Type.Equal[npc]})||(${Spawn[${mobid}].Type.Equal[pet]} && !${Spawn[${mobid}].Master.Type.Equal[pc]})) { 
/varset engagedmob 1 
/call Debuff 
/return 
} else { 
/call TargetCheck 
/return 
} 
:nostaff 
/if ((${Target.ID}==${mobid} && ${Target.PctHPs}<=${mobhealth} && ${Target.Distance}<=${engagedistance} && ${Target.PctHPs}>${stopnuke2} && ${Target.LineOfSight} && ${Spawn[${mobid}].Type.Equal[npc]})||(${Spawn[${mobid}].Type.Equal[pet]} && !${Spawn[${mobid}].Master.Type.Equal[pc]})) { 
/varset engagedmob 1 
/return 
} else { 
/call TargetCheck 
/return 
} 
/return

Sub NoAssist 
/if (${SpawnCount[npc radius ${engagedistance} zradius 20 noalert ${AlertList}]}>0) { 
/varset npcnum ${SpawnCount[npc radius ${engagedistance} zradius 20 noalert ${AlertList}]} 
/for m 1 to ${npcnum} step 1 
/if (${NearestSpawn[${m}, npc noalert ${AlertList}].LineOfSight}) { 
/varset mobid ${NearestSpawn[${m}, npc noalert ${AlertList}].ID} 
/target id ${mobid} 
/delay 1s 
/if (${tempstaff}<1) /goto :nostaff 
/if ((${Target.ID}==${mobid})&&(${Target.PctHPs}<=${staffhealth})&&(${Target.Type.Equal[NPC]})&&(${Target.Animation}!=32)) { 
/if ((${Target.Distance}<=${engagedistance})&&(${Target.PctHPs}>${stopnuke2})&&(${Target.LineOfSight})) { 
/varset engagedmob 1 
/call Debuff 
} 
} 
/goto :end 

:nostaff 
/if ((${Target.ID}==${mobid})&&(${Target.PctHPs}<=${mobhealth})&&(${Target.Type.Equal[NPC]})&&(${Target.Animation}!=32)) { 
/if ((${Target.Distance}<=${engagedistance})&&(${Target.PctHPs}>${stopnuke2})&&(${Target.LineOfSight})) { 
/if (${Target.PctHPs}<=${stopnuke2}) /return 
/varset engagedmob 1 
} 
} 

/goto :end 

} 
} 
/next m 

:end 
/return 

Sub Debuff 
/if (${Target.Distance}>200) { 
/echo ${Target.CleanName} is too far away to debuff with Elemental Staff. 
/goto :done 
} 
/call ItemFinder "Staff of Elemental Flux" 
/if (${Macro.Return.Equal["EQUIPPED"]} || ${Macro.Return.Equal["INVENTORY"]}) /goto :debuff 
/if (${Macro.Return.Equal["BAGGED"]}) /call EquipFromBag "Staff of Elemental Flux" 
:debuff 
/echo Debuffing ${Target.CleanName} 
:invisloop
/varset retrycount ${Math.Calc[${retrycount}+1]} 
/itemnotify ${FindItem[Staff of Elemental Flux].InvSlot} rightmouseup
/if (${Macro.Return.Equal["CAST_RESISTED"]} && ${retrycount}<${retry}) /goto :debuff 
/if (${Macro.Return.Equal["CAST_INVIS"]}) /goto :invisloop
/if (!${olditem.Equal[NULL]}) { 
/call ItemFinder "${olditem}" "${wornslot}" 
/if (${Macro.Return.Equal["BAGGED"]}) /call EquipFromBag "${olditem}" "${wornslot}" 
/varset olditem NULL 
/varset wornslot NULL 
} 
:done 
/varset retrycount 0 
/return 

Sub Autosit 
/if (${SpawnCount[npc radius 40 zradius 20 noalert ${AlertList}]}>0) { 
/varset npcnum ${SpawnCount[npc radius 40 zradius 20 noalert ${AlertList}]} 
/for m 1 to ${npcnum} step 1 
/if (${NearestSpawn[${m}, npc noalert ${AlertList}].LineOfSight}) { 
	/if (!${Me.Mount.ID} && ${Me.Sitting}) {
	/sit off 
	/call Assistcheck
		/if ((${Target.CurrentHPs}<=${mobhealth})&&(!${Me.Moving})&&(${Me.TargetOfTarget.ID}==${NearestSpawn[${tankname}].ID})&&(!${Target.Type.Equal[Corpse]})&&(${Target.LineOfSight})&&(${Target.Type.Equal[NPC]})) { 
		/if (${dosnare}>0 && ${Me.PctMana}>3 && ${Target.CurrentHPs}<=${snareperc}) /call Snare
		/if (${tempstaff}>0) /call Debuff
		/if (${dodmgclicky1}>0 && ${FindItem[${DmgClicky1}].Timer}<1) /call DmgClicky1
		/if (!${Target.Type.Equal[Corpse]}) /if (${dodmgclicky2}>0 && ${FindItem[${DmgClicky2}].Timer}<1) /call DmgClicky2
		}
	}
} 
} else { 
/next m 
/if (!${Me.Mount.ID} && !${Me.Sitting} && !${Me.Moving} && ${Me.PctMana}<${autositmana}) /sit on 
} 
/varset sittimer 1s 
/return 

Sub Nuke 
/if (${preconc}>0) /call Preconc
/varset nukecount 0
:nukeloop 
/if ((${doxuzl}>0)&&(${Target.CurrentHPs}<=${xuzlperc})) { 
/if (${Me.AltAbilityReady["246"]} || ${Me.AltAbilityReady["208"]}) /call Xuzl 
} 
/doevents 

/if (${doleash}>0) /call Leash 
:wait1 
/if (${Me.Casting.ID} || ${Me.Moving}) /goto :wait1 
/varset conccount 0 
/if (${Cursor.ID} && ${Cursor.Name.Equal[Rod of Mystical Transvergance]}) /autoinv 
/if (${forceshield}>0) /call Forceshield 
/if (${dosnare}>0 && ${Target.CurrentHPs}<=${snareperc} && !${snaretimer}) /call Snare 
/if (${modrod}>0 && ${Me.PctMana}<=${rodpercent} && ${hasrod}>0 && !${rodtimer}) /call Modrod 
/if (${doharvest}>0 && ${Me.PctMana}<=${harvestpercent}) { 
/if ((${Me.AltAbilityReady["Harvest of Druzzil"]} && ${Me.AltAbility["Harvest of Druzzil"]}>0) || ${Me.SpellReady["Patient Harvest"]} || ${Me.SpellReady["Harvest"]}) /call Harvestcheck 
} 
/if (${manaward}>0 && !${Me.Buff["Mana Ward"].ID}) /call Manaward 
/call TargetCheck 
/if (${engagedmob}==0) /return 
:wait2 
/if (${Me.Casting.ID} || ${Me.Moving}) /goto :wait2 
/if (${pausetimer}) /goto :nukeloop 
/if ((${Target.CurrentHPs}>${stopnuke})&&(!${Me.Moving})&&(${Target.ID}==${mobid})&&(!${Target.Type.Equal[Corpse]})&&(${Target.LineOfSight})) { 
/if (!${TempSpell.Equal[${mainnuke}]}) {
	/varset nukecount 0 
	/varset TempSpell ${mainnuke} 
}
:mainnuke 
/if (${Me.TargetOfTarget.Name.Equal[${Me.Name}]} && ${Target.Type.Equal[NPC]}) /call Concussion
/if (${dodmgclicky1}>0 && ${FindItem[${DmgClicky1}].Timer}<1) {
	/call DmgClicky1
	/varset nukecount ${Math.Calc[${nukecount}+1]} 
	/echo Main Nuke Number ${nukecount}
	/doevents GoMana
	/goto :GoMnuke
}
/if (${dodmgclicky2}>0 && ${FindItem[${DmgClicky2}].Timer}<1) {
	/call DmgClicky2
	/varset nukecount ${Math.Calc[${nukecount}+1]} 
	/echo Main Nuke Number ${nukecount}
	/doevents GoMana
	/goto :GoMnuke
}
/if (${Me.SpellReady["${mainnuke}"]}) {
	/delay 3
	/call cast "${mainnuke}" ${mainnukegem}
	/if (${Macro.Return.Equal[CAST_SUCCESS]} || ${Macro.Return.Equal[CAST_RESISTED]} || ${Macro.Return.Equal[X]}) {
		/doevents GoMana
		/varset nukecount ${Math.Calc[${nukecount}+1]} 
		/echo Main Nuke Number ${nukecount}
	}
} else {
	/if (${Me.SpellReady["${Stbynuke}"]}) {
		/delay 3
		/call cast "${Stbynuke}" ${endnukegem}
		/if (${Macro.Return.Equal[CAST_SUCCESS]} || ${Macro.Return.Equal[CAST_RESISTED]} || ${Macro.Return.Equal[X]}) {
			/doevents GoMana
			/varset nukecount ${Math.Calc[${nukecount}+1]} 
			/echo Main Nuke Number ${nukecount}
		}
	}
}
}
:GoMnuke
/if (${GoMana}<1 || ${GoMTimer}<70) {
	/goto :contmainnuke
}
/doevents GoMana
/doevents GoMana
/call cast "${GoMnuke}" ${GoMnukegem} 7s
/if (${Macro.Return.Equal[CAST_SUCCESS]} || ${Macro.Return.Equal[CAST_RESISTED]} || ${Macro.Return.Equal[X]}) {
	/varset nukecount ${Math.Calc[${nukecount}+2]} 
	/echo GoM Nuke Number ${nukecount}
}
/doevents GoMoff
/doevents GoMana
:contmainnuke
/if (!${nukepause.Equal["None"]}) /varset pausetimer ${nukepause} 
/if ((${Target.CurrentHPs}<=${stopnuke})&&(!${Me.Moving})&&(${Target.CurrentHPs}>${stopnuke2})&&(${Target.ID}==${mobid})&&(!${Target.Type.Equal[Corpse]})&&(${Target.LineOfSight})) { 
/if (!${TempSpell.Equal[${endnuke}]}) {
	/varset nukecount 0 
	/varset TempSpell ${endnuke} 
}
:endnuke 
/if (${GoMana}>0 && ${GoMTimer}>70) {
	/goto :GoMnuke2
}
/if (${Target.Type.Equal[NPC]} && ${TempSpell.Equal[${endnuke}]} && ${Target.PctHPs}>3 && !${Me.SpellReady[${endnuke}]}) {
	/call cast "${mainnuke}" ${mainnukegem}
	/if (${Macro.Return.Equal[CAST_SUCCESS]} || ${Macro.Return.Equal[CAST_RESISTED]} || ${Macro.Return.Equal[X]}) {
		/doevents GoMana
		/varset nukecount ${Math.Calc[${nukecount}+1]} 
		/echo End Nuke Number ${nukecount}
	}
	/goto :contendnuke
}
/if (${Me.SpellReady[${endnuke}]}) {
	/call cast "${endnuke}" ${endnukegem}
} else /if (${Me.SpellReady["${mainnuke}"]}) {
	/call cast "${mainnuke}" ${mainnukegem}
} else /if (${Me.SpellReady["${GoMnuke}"]}) {
	/call cast "${GoMnuke}" ${GoMnukegem} 7s
}
/if (${Macro.Return.Equal[CAST_SUCCESS]} || ${Macro.Return.Equal[CAST_RESISTED]} || ${Macro.Return.Equal[X]}) {
	/doevents GoMana
	/varset nukecount ${Math.Calc[${nukecount}+1]} 
	/echo End Nuke Number ${nukecount}
}
/goto :contendnuke
:GoMnuke2
/doevents GoMana
/doevents GoMana
/call cast "${GoMnuke}" ${GoMnukegem} 7s
/if (${Macro.Return.Equal[CAST_SUCCESS]} || ${Macro.Return.Equal[CAST_RESISTED]} || ${Macro.Return.Equal[X]}) {
	/varset nukecount ${Math.Calc[${nukecount}+2]} 
	/echo GoM Nuke Number ${nukecount}
}
/doevents GoMoff
/doevents GoMana
:contendnuke
/if (!${nukepause.Equal["None"]}) /varset pausetimer ${nukepause} 
} 
:wait3 
/if (${Me.Casting.ID} || ${Me.Moving}) /goto :wait3 
/call TargetCheck 
/if (${engagedmob}==0) /return 
/doevents GoMoff
/doevents GoMana
/if (${concuss}<1) /goto :nukeloop 
/if (${TempSpell.Equal[${mainnuke}]} && ${nukecount}<${mainnukenum}) /goto :nukeloop 
/if (${TempSpell.Equal[${endnuke}]} && ${nukecount}<${endnukenum}) /goto :endnuke
/if ((${concuss}>0)&&(${conccount}<${concnum})&&(${Target.CurrentHPs}>${stopnuke2})&&(!${Me.Moving})&&(${Target.ID}==${mobid})&&(!${Target.Type.Equal[Corpse]})&&(${Target.LineOfSight})) { 
/call Concussion 
} 
/doevents died 
/doevents summon 
/doevents hit 
/goto :nukeloop 
/return

Sub Concussion 
/if (${Me.Gem[${myconc}]} && !${Me.SpellReady[${myconc}]}) /delay 3s ${Me.SpellReady[${myconc}]}
:concloop 

/doevents 

/if (${doleash}>0) /call Leash 
/varset nukecount 0 
/if (${Cursor.ID} && ${Cursor.Name.Equal[Rod of Mystical Transvergance]}) /autoinv 
:wait1 
/if (${Me.Casting.ID} || ${Me.Moving}) /goto :wait1 
/call TargetCheck 
/if (${engagedmob}==0) /return 
/if (${conccount}>=${concnum}) /return 
/if (${concuss}<1) /return 
/if ((${Target.CurrentHPs}>${stopnuke2})&&(!${Me.Moving})&&(${Target.ID}==${mobid})&&(!${Target.Type.Equal[Corpse]})&&(${Target.LineOfSight})) { 
	/if (${hasele}>0) { 
	/call ItemFinder "Maelin's Leggings of Lore" 
		/if (${Macro.Return.Equal["INVENTORY"]}) { 
			/varset conccount ${Math.Calc[${conccount}+1]} 
			/echo Concussion Number ${conccount} 
			/call IteminInvSlot "Maelin's Leggings of Lore" 
		} 
		/if (${Macro.Return.Equal["BAGGED"]}) { 
			/varset conccount ${Math.Calc[${conccount}+1]} 
			/echo Concussion Number ${conccount} 
			/call IteminBag "Maelin's Leggings of Lore" 
		} 
		/if (${Macro.Return.Equal["EQUIPPED"]}) { 
			/varset conccount ${Math.Calc[${conccount}+1]} 
			/echo Concussion Number ${conccount} 
			/call RightClickItem "Maelin's Leggings of Lore" 
		} 
	} 
:nolegs 
	/if (${hasele}<1) { 
:conc 
		/delay 3
		/if (${Me.SpellReady["${myconc}"]}) /call cast "${myconc}" ${myconcgem} 7s 
		/if (${Macro.Return.Equal[CAST_SUCCESS]}) {
			/varset conccount ${Math.Calc[${conccount}+1]} 
			/echo Concussion Number ${conccount} 
		} else /if (${Macro.Return.Equal[CAST_RESISTED]}) {
			/delay 8s ${Me.SpellReady["${myconc}"]}
		} else /if (!${Target.ID} || ${Target.Type.Equal[PC]}) {
			/goto :wait2
		} else /goto :conc
	} 
}
:wait2 
/if (${Me.Casting.ID} || ${Me.Moving}) /goto :wait2 
/call TargetCheck 
/if (${engagedmob}==0) /return 
/if (${dosnare}>0 && ${Target.CurrentHPs}<=${snareperc} && !${snaretimer}) /call Snare 

/doevents died 
/doevents summon 
/doevents hit 
/if (${conccount}>=${concnum}) /return 
/if (${conccount}<${concnum}) /goto :concloop 
/return

Sub Preconc 
/if (${Me.Gem["${myconc}"]} && !${Me.SpellReady["${myconc}"]}) /delay 3s ${Me.SpellReady["${myconc}"]}
/varset conccount 0 
/varset pcid ${mobid} 
:preconcloop 

/doevents 

/if (${doleash}>0) /call Leash 
/if (${Cursor.ID} && ${Cursor.Name.Equal[Rod of Mystical Transvergance]}) /autoinv 
:wait1 
/if (${Me.Casting.ID} || ${Me.Moving}) /goto :wait1 
/call TargetCheck 
/if (${engagedmob}==0) /return 
/if (${conccount}>=${preconcnum}) /return 
/if (${preconc}<1) /return 
/if ((${Target.CurrentHPs}>${stopnuke2})&&(!${Me.Moving})&&(${Target.ID}==${mobid})&&(!${Target.Type.Equal[Corpse]})&&(${Target.LineOfSight})) { 
/if (${hasele}>0) { 
/call ItemFinder "Maelin's Leggings of Lore" 
/if (${Macro.Return.Equal["INVENTORY"]}) { 
/varset conccount ${Math.Calc[${conccount}+1]} 
/echo PreConcussion Number ${conccount} 
/call IteminInvSlot "Maelin's Leggings of Lore" 
} 
/if (${Macro.Return.Equal["BAGGED"]}) { 
/varset conccount ${Math.Calc[${conccount}+1]} 
/echo PreConcussion Number ${conccount} 
/call IteminBag "Maelin's Leggings of Lore" 
} 
/if (${Macro.Return.Equal["EQUIPPED"]}) { 
/varset conccount ${Math.Calc[${conccount}+1]} 
/echo PreConcussion Number ${conccount} 
/call RightClickItem "Maelin's Leggings of Lore" 
} 
} 
:nolegs 
/if (${hasele}<1) { 
:conc 
	/delay 3
	/call cast "${myconc}" ${myconcgem} 7s 
	/if (${Macro.Return.Equal[CAST_NOTREADY]}) /goto :conc 
	/if (${Macro.Return.Equal[CAST_SUCCESS]} || ${Macro.Return.Equal[CAST_RESISTED]}) {
		/varset conccount ${Math.Calc[${conccount}+1]} 
		/echo Concussion Number ${conccount} 
	}
} 
} 
:wait2 
/if (${Me.Casting.ID} || ${Me.Moving}) /goto :wait2 
/call TargetCheck 
/if (${engagedmob}==0) /return 

/doevents died 
/doevents summon 
/doevents hit 
/if (${conccount}>=${preconcnum}) /return 
/if (${conccount}<${preconcnum}) /goto :preconcloop 
/return

Sub AntiRetard 
|  Anti Retard Code 
/if (${dodmgclicky1}>0) { 
/call ItemFinder "${DmgClicky1}" 
/if (${Macro.Return.Equal["NOTFOUND"]}) { 
/ini "${IniFile}" Settings dodmgclicky1 0 
/varset dodmgclicky1 0 
/echo Seams you dont have a ${DmgClicky1} (DmgClicky1).
} 
} 
/if (${dodmgclicky2}>0) { 
/call ItemFinder "${DmgClicky2}" 
/if (${Macro.Return.Equal["NOTFOUND"]}) { 
/ini "${IniFile}" Settings dodmgclicky2 0 
/varset dodmgclicky2 0 
/echo Seams you dont have a ${DmgClicky2} (DmgClicky2).
} 
} 
/if (${tempstaff}>0) { 
/if (${staffhealth}<${mobhealth}) { 
/varset staffhealth ${mobhealth} 
/ini "${IniFile}" Settings staffhealth ${mobhealth} 
} 
} 
/if (!${Me.Book["${mainnuke}"]}) { 
/echo You don't seem to have the spell ${mainnuke} 
/endmacro 
} 
/if (!${Me.Book["${endnuke}"]}) { 
/echo You don't seem to have the spell ${endnuke} 
/endmacro 
} 
/if (!${Me.Book["${GoMnuke}"]}) { 
/echo You don't seem to have the spell ${GoMnuke} 
/endmacro 
}
/if (${useepic}>0) { 
/call ItemFinder "Staff of the Four" 
/if (${Macro.Return.Equal["NOTFOUND"]}) { 
/ini "${IniFile}" Settings useepic 0 
/varset useepic 0 
} 
} 
/if (${usetimewand}>0) { 
/call ItemFinder "Wand of Impenetrable Force" 
/if (${Macro.Return.Equal["NOTFOUND"]}) { 
/ini "${IniFile}" Settings usetimewand 0 
/varset usetimewand 0 
} 
} 
/if (${useepic}>0 && ${Me.Buff["Force Shield"].ID} && !${Me.Buff["Spiritual Dominion"].ID}) { 
/for m 1 to 20 step 1 
/if (${Me.Buff[${m}].ID}>0) { 
/if (${Me.Buff[${m}].Name.Equal["Force Shield"]}) /varset buffslot ${Math.Calc[${Me.Buff[${m}].ID}-1]} 
} 
/next m 
/notify BuffWindow Buff${buffslot} leftmouseup 
} 
/if (${useepic}<1 && ${Me.Buff["Barrier of Force"].ID}) { 
/for m 1 to 20 step 1 
/if (${Me.Buff[${m}].ID}>0) { 
/if (${Me.Buff[${m}].Name.Equal["Barrier of Force"]}) /varset buffslot ${Math.Calc[${Me.Buff[${m}].ID}-1]} 
} 
/next m 
/notify BuffWindow Buff${buffslot} leftmouseup 
} 
/if (${mainnukenum}==0 || ${endnukenum}==0 ) { 
/echo You set mainnukenum or endnukenum to 0, if you didn't want to nuke, why run this macro? Dumbass. 
/endmacro 
} 
/if (${timewand}>0 && ${useepic}>0) { 
/echo You enabled both Time Wand and Epic, try reading the documentation. 
/endmacro 
} 
/if (${forceshield}<1) { 
/if (${timewand}>0 || ${useepic}>0) { 
/echo You enabled Time Wand or Epic, and didn't enable Force Shield. Doing it for you. 
/ini "${IniFile}" Settings forceshield 1 
/varset forceshield 1 
} 
} 
/if (${hasele}<1 && ${concuss}>0 && !${Me.Book[Ancient: Greater Concussion]} && !${Me.Book[Concussion]} && !${Me.Book[Concussive Blast]}) { 
/echo You disabled Elemental Legs, and enabled Concussion, but you dont have a concussion spell in your spellbook. 
/echo Ending Macro because you're stupid. 
/endmacro 
} 
/if (${mainnuke.Equal[${endnuke}]} && ${endnukegem.Right[1]}!=${mainnukegem.Right[1]}) { 
/varset endnukegem ${mainnukegem} 
} else /if (!${mainnuke.Equal[${endnuke}]}) { 
/varset TempStr ${Ini[${IniFile},Settings,endnukegem,NOTFOUND]} 
/varset endnukegem ${TempStr} 
} 
/if (${mainnuke.Equal[${GoMnuke}]} && ${GoMnukegem.Right[1]}!=${mainnukegem.Right[1]}) { 
/varset GoMnukegem ${mainnukegem} 
} else /if (!${mainnuke.Equal[${GoMnuke}]}) { 
/varset TempStr ${Ini[${IniFile},Settings,GoMnukegem,NOTFOUND]} 
/varset GoMnukegem ${TempStr} 
} 
/if (${endnuke.Equal[${GoMnuke}]} && ${GoMnukegem.Right[1]}!=${endnukegem.Right[1]}) { 
/varset GoMnukegem ${endnukegem} 
} else /if (!${endnuke.Equal[${GoMnuke}]}) { 
/varset TempStr ${Ini[${IniFile},Settings,GoMnukegem,NOTFOUND]} 
/varset GoMnukegem ${TempStr} 
}
/if (${Me.Gem[${mainnuke}]}!=${mainnukegem.Right[1]}) { 
/memspell ${mainnukegem.Right[1]} "${mainnuke}" 
/delay 4s 
} 
/if (${Me.Gem[${endnuke}]}!=${endnukegem.Right[1]}) { 
/memspell ${endnukegem.Right[1]} "${endnuke}" 
/delay 4s 
} 
/if (${Me.Gem[${GoMnuke}]}!=${GoMnukegem.Right[1]}) { 
/memspell ${GoMnukegem.Right[1]} "${GoMnuke}" 
/delay 4s 
} 
/if (!${Me.Gem["Mana Ward"]} && ${manaward}>0) { 
/memspell ${manawardgem.Right[1]} "Mana Ward" 
/delay 4s 
} 
/if (${hasele}<1 && ${Me.Book[Concussive Blast]}) { 
/varset myconc Concussive Blast 
} else /if (${hasele}<1 && ${Me.Book[Ancient: Greater Concussion]}) { 
/varset myconc Ancient: Greater Concussion
} else /if (${hasele}<1 && ${Me.Book[Concussion]}) { 
/varset myconc Concussion
}
/if (${Me.Gem[${myconc}]}!=${myconcgem.Right[1]}) { 
/memspell ${myconcgem.Right[1]} "${myconc}"
/delay 4s 
} 
/if (!${Me.Gem["Patient Harvest Rk. II"]} && ${Me.Book["Patient Harvest Rk. II"]}) {
	/memspell ${harvestgem.Right[1]} "Patient Harvest Rk. II"
	/delay 4s ${Me.Gem["Patient Harvest Rk. II"]}
} else {
	/if (!${Me.Book["Patient Harvest Rk. II"]} && (${Me.Book["Patient Harvest"]} && !${Me.Gem["Patient Harvest"]})) {
		/memspell ${harvestgem.Right[1]} "Patient Harvest"
		/delay 4s ${Me.Gem["Patient Harvest"]}
	} else {
		/if (!${Me.Book["Patient Harvest Rk. II"]} && !${Me.Book["Patient Harvest"]} && (${Me.Book["Harvest"]} && !${Me.Gem["Harvest"]})) {
			/memspell ${harvestgem.Right[1]} "Harvest"
			/delay 4s ${Me.Gem["Patient Harvest"]}
		}
	}
}
/if (${Me.Book[Atol's Spectral Shackles]}) /varset snarespell Atol's Spectral Shackles 
/if (!${Me.Book[Atol's Spectral Shackles]} && ${Me.Book[Bonds of Force]}) /varset snarespell Bonds of Force 
/if (!${Me.Gem["${snarespell}"]} && ${Me.Book["${snarespell}"]}) {
	/memspell 8 "${snarespell}"
	/delay 4s ${Me.Gem["${snarespell}"]}
}
/if (${Me.Book[Shield of the Crystalwing Rk. III]}) /varset shieldspell Shield of the Crystalwing Rk. III
/if (${Me.Book[Shield of the Crystalwing Rk. II]}) /varset shieldspell Shield of the Crystalwing Rk. II
/if (${Me.Book[Shield of the Crystalwing]}) /varset shieldspell Shield of the Crystalwing
/if ((!${Me.Book[Shield of the Crystalwing]} && !${Me.Book[Shield of the Crystalwing Rk. II]} && !${Me.Book[Shield of the Crystalwing Rk. III]}) && ${Me.Book[Ether Shield]}) /varset shieldspell Ether Shield
/if (!${Me.Book[Shield of the Crystalwing]} && !${Me.Book[Ether Shield]} && ${Me.Book[Shield of Maelin]}) /varset shieldspell Shield of Maelin 
/if (${Me.Book[Scales of the Crystalwing]}) /varset forcespell Scales of the Crystalwing
/if (!${Me.Book[Scales of the Crystalwing]} && ${Me.Book[Ether Skin]}) /varset forcespell Ether Skin
/if (!${Me.Book[Scales of the Crystalwing]} && !${Me.Book[Ether Skin]} && ${Me.Book[Force Shield]}) /varset forcespell Force Shield
| End Anti Retard Code 
/return